package fwk.siteManager.BO {	
	import fwk.loaderManager.LoaderItemGroup;

	
	public class RessourceGroupData
	{
		
		public var id:String;
		public var className:String;
		
		public var xmlDescription:XML;
		
		public var x:int = 0;
		public var y:int = 0;
		public var center:Boolean = true;
		public var cache:Boolean = false;
		
		public var listRessources:Array;
		
		
		public function RessourceGroupData()
		{
			listRessources = new Array();
			
		}
		public function init(xml:XML)
		{
			id 			= xml.@id;
			className 	= xml.name();

			x = parseInt(xml.@x);
			y = parseInt(xml.@y);
			
			if (String(xml.@center[0]) == "true") center = true;
			if (String(xml.@cache[0]) == "true") cache = true;
			
			xmlDescription = xml;
			
			for (var i:int = 0; i < xml.children().length(); i++) 
			{
				
				var resData:RessourceData = new RessourceData();
				resData.init(  xml.children()[i] );
				
				listRessources.push( resData );
			}
			
		}
				
	}
	
	
}